using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UIManager1 : MonoBehaviour
{
    public static UIManager1 Instance;

    public Image HPMask;
    public float originalSize;

    private void Awake()
    {
        Instance = this;
        originalSize = HPMask.rectTransform.rect.width;

    }

    public void SetHPValue(float fillpercent)
    {
        HPMask.rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, fillpercent * originalSize);
    }
}
